package com.growthgate.bootcommon.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * 响应信息
 *
 * @author GrowthGate
 * @date 2020/2/14
 */
@Getter
@AllArgsConstructor
public enum ResponseMsg {

    /**
     * 成功
     */
    SUCCESS(HttpStatus.OK, "成功！"),
    /**
     * 服务器异常
     */
    SERVER_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "服务器异常，请联系管理员");

    /**
     * 状态码
     */
    private HttpStatus httpStatus;
    /**
     * 信息
     */
    private String msg;

}
